package com.xcf.service.system.companyAndDepartment;

import java.util.List;
import java.util.Map;

import com.xcf.util.PageData;

public interface CompanyAndDepartmentService {
	public List<Map> findCompanyAndDepartmentInfo()throws Exception;
	/**
	 * 查找公司信息
	 * @return
	 * @throws Exception
	 */
	public List<Map> findCompany()throws Exception;
	/**
	 * 查找部门信息
	 * @param COMPANY_ID
	 * @return
	 * @throws Exception
	 */
	public List<Map> findDepartment(String COMPANY_ID)throws Exception;
	/**
	 * 根据父id查找部门信息
	 * @param PARENT_DEPARTMENT_ID
	 * @return
	 * @throws Exception
	 */
	public List<Map> findDepartmentByParentId(String PARENT_DEPARTMENT_ID)throws Exception;
	/**
	 * 保存公司信息
	 * @param pd
	 * @throws Exception
	 */
	public void saveCompanyInfo(PageData pd)throws Exception;
	/**
	 * 保存部门信息
	 * @param pd
	 * @throws Exception
	 */
	public void saveDepartmentInfo(PageData pd)throws Exception;
	/**
	 * 删除公司信息
	 * @param COMPANY_ID
	 * @throws Exception
	 */
	public void deleteCompanyInfp(String COMPANY_ID)throws Exception;
	/**
	 * 删除部门信息
	 * @param DEPARTMENT_ID
	 * @throws Exception
	 */
	public void deleteDepartmentInfo(String DEPARTMENT_ID)throws Exception;
}
